﻿@using vITs.Site.Models
@using vITs.Site.Models.DataModels

<div id="assignmentInformation">
    <fieldset>
        <legend>
            <h3>@this.ViewBag.Assignment.AssignmentName</h3>
        </legend>
        Konsult: @this.ViewBag.Assignment.Consultant.GivenName @this.ViewBag.Assignment.Consultant.Surname
        <br />
        Handläggare: @VitsExtensionMethods.GetFullName(this.ViewBag.Assignment.Handler)
        <br />
        Tidsperiod: @String.Format("{0:yyyy-MM-dd}", this.ViewBag.Assignment.StartDate) &mdash; @String.Format("{0:yyyy-MM-dd}", this.ViewBag.Assignment.EndDate)
    @if (this.ViewBag.Assignment.Advance > 0)
    {
        <br />
        @:Förskott: @this.ViewBag.Assignment.Advance.ToString("0.00") SEK
    }
        <br />
        @{AssignmentStatus s = VitsExtensionMethods.GetStatus(this.ViewBag.Assignment);}
        Status: @s.GetDisplayName()
    </fieldset>
</div>